package com.cq.hd.product.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author much
 * @since 2024/09/04 21:53
 */
@Data
@TableName(value = "tb_active_group_buy")
public class TbActiveGroupBuyPo implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long businessId;

    private Long activeId;

    @ApiModelProperty(value = "拼团价格")
    private BigDecimal groupBuyPrice;

    @ApiModelProperty(value = "成团人数")
    private Integer groupNum;

    @ApiModelProperty(value = "成团时间（小时）")
    private Integer groupDuration;

    @ApiModelProperty(value = "是否虚拟成团 (0: 否, 1: 是)")
    private Integer virtualGroup;

    @ApiModelProperty(value = "开团权限 (ALL: 所有人, LEVEL1_AGENT: 一级经纪人)")
    private String groupCreatorPermission;

    @ApiModelProperty(value = "免单类型 (0-无，1: 团长免单, 2: 随机免单)")
    private Integer freeType;

    @ApiModelProperty(value = "团长0元开团开关 (0: 关闭, 1: 开启)")
    private Integer leadFreeEnabled;

    @ApiModelProperty(value = "直接参团开关 (0: 关闭, 1: 开启)")
    private Integer directJoinEnabled;

    @ApiModelProperty(value = "报名信息团长是否可见 (0: 不可见, 1: 可见)")
    private Integer leadViewEnrollInfo;

    private Date createTime;

    private Date updateTime;

}
